local Menu = GS:addState('Menu')
function Menu:enterState()
	clearLoveCallbacks()

	print("entering menu state")
	if new_game then
		init_game()
	end

	player.lock_control = true

	function love.load()

	end

	function love.update(dt)
		global_updates(dt)
	end

	function love.draw()
		local s
		if new_game then
			s = "(N)ew Game\n(L)oad Game\n(Q)uit"
		else
			s = "(C)ontinue\n(S)ave Game\n(Q)uit"
		end

		love.graphics.print(s,
			screen_w/2-50, screen_h/2)

		draw_mouse()
	end

	function love.keypressed(key, unicode)
		if key == "n" and new_game then
			gs:gotoState('NewGame')
		elseif key == "c" and not new_game then
			gs:gotoState(player.last_state)
		elseif key == "l" then
		elseif key == "q" or key == 'escape' then
			love.event.quit()
		end
	end
end

function Menu:exitState()
	print("exiting menu state")
	player.lock_control = false
	player.last_state = 'Menu'
end
